/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __TRANSFORM_CONTROL_H__
#define __TRANSFORM_CONTROL_H__

#include "BuilderPrerequisites.h"
#include "NumericTextEdit.h"

namespace PQBuilder
{
	class TransformControl : 
		public QWidget
	{
	public:
		TransformControl(QWidget *parent = 0,PQEngine::TransformComponent* component=0);
		~TransformControl();
		
		inline float getControlHeight()
		{
			return _controlHeight;
		}

		void OnTranslateObject(PQEngine::GameObject *object);
		void OnRotateObject(PQEngine::GameObject *object);
		void OnScaleObject(PQEngine::GameObject *object);
	private:
		float _controlHeight;

		NumericTextEdit* _lineEditPosX;
		NumericTextEdit* _lineEditPosY;
		NumericTextEdit* _lineEditPosZ;

		NumericTextEdit* _lineEditRotX;
		NumericTextEdit* _lineEditRotY;
		NumericTextEdit* _lineEditRotZ;

		NumericTextEdit* _lineEditScaleX;
		NumericTextEdit* _lineEditScaleY;
		NumericTextEdit* _lineEditScaleZ;
	};
}

#endif
